package com.example.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.example.knight.Knight;
import com.example.knight.Quest;
import com.example.knight.impl2.BraveKnight;
import com.example.knight.impl2.SaveZeldaQuest;
import com.example.knight.impl2.SlayDragonQuest;

//@Configuration
public class AppConfig {

    @Bean 
    public Knight knight(){
        return new BraveKnight(quest());
    }

    @Bean
    public Quest quest(){
        // return new SlayDragonQuest(System.out);
        return new SaveZeldaQuest();
    }
     
}